<template>
    <div class="fail-page">
        <div class="fail-code">请求<span>失</span>败</div>
        <div class="fail-desc">啊哦~ 网络出现问题 请稍后重试</div>
        <div class="fail-handle">
            <router-link to="/">
                <el-button type="primary" size="large">返回首页</el-button>
            </router-link>
            <el-button class="fail-btn" type="primary" size="large" @click="goBack">返回上一页</el-button>
        </div>
    </div>
</template>

<script>
    export default {
        methods: {
            goBack() {
                this.$router.go(-1);
            }
        }
    }
</script>

<style scoped>
    .fail-page {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 100%;
        background: #f3f3f3;
        box-sizing: border-box;
    }

    .fail-code {
        line-height: 1;
        font-size: 102px;
        font-weight: bolder;
        color: #f02d2d;
    }

    .fail-code span {
        color: #00a854;
    }

    .fail-desc {
        font-size: 30px;
        color: #777;
    }

    .fail-handle {
        margin-top: 30px;
        padding-bottom: 200px;
    }

    .fail-btn {
        margin-left: 100px;
    }
</style>
